package com.example.teesystem.service;

import com.example.teesystem.common.utils.Response;
import com.example.teesystem.entity.PreCourseScore;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.teesystem.entity.vo.preCourseScore.PreCourseResponse;
import com.example.teesystem.entity.vo.preCourseScore.PreCourseScoreInsert;
import com.example.teesystem.entity.vo.preCourseScore.ScoreInsert;
import lombok.AllArgsConstructor;

import java.util.List;

/**
* @author 12510
* @description 针对表【t_pre_course_score】的数据库操作Service
* @createDate 2022-05-27 11:15:24
*/
public interface PreCourseScoreService extends IService<PreCourseScore> {
    Response insertOrUpdatePreCourseScore(ScoreInsert scoreInsert);
    Response getPreCourseScore(int courseId);
    Response getStuPreCourseScore(int studentId, int courseId);
    Response updateStuPreCourseScore(int id, int score);
    List<PreCourseResponse> getStudentPreCourseScore(int studentId, int courseId);
}
